package com.ruoyi.linkage.service.impl;

import java.util.List;

import com.ruoyi.linkage.Vo.LinkageEventVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.linkage.mapper.LinkageEventRecordMapper;
import com.ruoyi.linkage.domain.LinkageEventRecord;
import com.ruoyi.linkage.service.ILinkageEventRecordService;

/**
 * 联动事件记录Service业务层处理
 *
 * @author pengjie
 * @date 2023-12-20
 */
@Service
public class LinkageEventRecordServiceImpl implements ILinkageEventRecordService
{
    @Autowired
    private LinkageEventRecordMapper linkageEventRecordMapper;

    /**
     * 查询联动事件记录
     *
     * @param linkageEventRecordId 联动事件记录主键
     * @return 联动事件记录
     */
    @Override
    public LinkageEventRecord selectLinkageEventRecordByLinkageEventRecordId(String linkageEventRecordId)
    {
        return linkageEventRecordMapper.selectLinkageEventRecordByLinkageEventRecordId(linkageEventRecordId);
    }

    /**
     * 查询联动事件记录列表
     *
     * @param linkageEventRecord 联动事件记录
     * @return 联动事件记录
     */
    @Override
    public List<LinkageEventRecord> selectLinkageEventRecordList(LinkageEventRecord linkageEventRecord)
    {
        return linkageEventRecordMapper.selectLinkageEventRecordList(linkageEventRecord);
    }

    /**
     * 新增联动事件记录
     *
     * @param linkageEventRecord 联动事件记录
     * @return 结果
     */
    @Override
    public int insertLinkageEventRecord(LinkageEventRecord linkageEventRecord)
    {
        return linkageEventRecordMapper.insertLinkageEventRecord(linkageEventRecord);
    }

    /**
     * 修改联动事件记录
     *
     * @param linkageEventRecord 联动事件记录
     * @return 结果
     */
    @Override
    public int updateLinkageEventRecord(LinkageEventRecord linkageEventRecord)
    {
        return linkageEventRecordMapper.updateLinkageEventRecord(linkageEventRecord);
    }

    /**
     * 批量删除联动事件记录
     *
     * @param linkageEventRecordIds 需要删除的联动事件记录主键
     * @return 结果
     */
    @Override
    public int deleteLinkageEventRecordByLinkageEventRecordIds(String[] linkageEventRecordIds)
    {
        return linkageEventRecordMapper.deleteLinkageEventRecordByLinkageEventRecordIds(linkageEventRecordIds);
    }

    /**
     * 删除联动事件记录信息
     *
     * @param linkageEventRecordId 联动事件记录主键
     * @return 结果
     */
    @Override
    public int deleteLinkageEventRecordByLinkageEventRecordId(String linkageEventRecordId)
    {
        return linkageEventRecordMapper.deleteLinkageEventRecordByLinkageEventRecordId(linkageEventRecordId);
    }

    /**
     * 条件查询联动事件
     *
     * @param linkageEventVo 联动事件主键
     * @return 联动事件
     */
    @Override
    public List<LinkageEventRecord> queryLinkageEventRecordList(LinkageEventVo linkageEventVo) {
        return linkageEventRecordMapper.queryLinkageEventRecordList(linkageEventVo);
    }
}
